const path = require('path');
const resolve = (dir) => path.resolve(__dirname, dir);

module.exports = {
	publicPath: './',
	outputDir: 'dist',
	assetsDir: '',
	css: {
		preprocessorOptions: {
			less: {
				lessOptions: {
					javascriptEnabled: true,
					modifyVars: {
						hack: `true; @import (reference) "${resolve('src/styles/var.less')}";`
					}
				}
			}
		}
	},
	devServer: {}
};
